package com.kuang.pojo.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

//等价于<bean id="user" class="User"/>
@Component
@Scope("prototype")
public class User {
    @Value("狂神")
    public String name;

}
